import tkinter as tk
 
top = tk.Tk()
 
aaa = tk.BooleanVar()
bbb = tk.BooleanVar()
aaa.set(True)
cb_a = tk.Checkbutton(top, text='aaa', variable=aaa, offvalue=False, onvalue=True)
cb_a.pack()

cb_b = tk.Checkbutton(top, text='bbb', variable=bbb, offvalue=False, onvalue=True)
cb_b.pack()

def OnOK():
    print('aaa:', aaa.get())
    print('bbb:', bbb.get())

btn = tk.Button(top, text='OK', command=OnOK)
btn.pack()

top.mainloop()
